//
//  FoodViewCell.m
//  foodlist
//
//  Created by HappyMilk 02 on 2017/8/16.
//  Copyright © 2017年 tomi. All rights reserved.
//

#import "FoodViewCell.h"

@interface FoodViewCell ()

@property (weak, nonatomic) IBOutlet UIImageView *imgv_food;
@property (weak, nonatomic) IBOutlet UILabel *lab_name;

@property (weak, nonatomic) IBOutlet UILabel *lab_materal;
@property (weak, nonatomic) IBOutlet UILabel *lab_zan;

@property (nonatomic ,strong) FoodModel *model;

@end

@implementation FoodViewCell

- (void)setupCellContent:(FoodModel *)model{
    _model = model;
    
    [self.imgv_food sd_setImageWithURL:[NSURL URLWithString:model.pic]];
    self.lab_name.text = model.name;
    self.lab_materal.text = model.tag;
    
}

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
